import Layout from "@/layout";

const supplierRouter = {
  path: "/supplier/index",
  component: Layout,
  redirect: "noRedirect",
  name: "supplier",
  hidden: false,
  meta: {
    title: "供应商管理",
    abbre: "供应",
    icon: "left_menu_supplier",
    navigation: "/supplier",
    id: "407"
  },
  children: [
    {
      path: "/supplier/index",
      component: () => import("@/views/supplier/list/index"),
      name: "supplier_list",
      hidden: false,
      meta: {
        title: "供应商列表",
        noCache: false,
        navigation: "/supplier/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/supplier/join",
      component: () => import("@/views/supplier/join/index"),
      name: "supplier_join",
      hidden: false,
      meta: {
        title: "入驻审核",
        noCache: false,
        navigation: "/supplier/join",
        icon: "menu_big_data"
      }
    },
    {
      path: "/supplier/detail",
      component: () => import("@/views/supplier/detail/index"),
      name: "supplier_detail",
      hidden: true,
      meta: {
        title: "供应商详情",
        noCache: false,
        navigation: "/supplier/index",
        icon: "menu_big_data"
      }
    },
    {
      path: "/supplier/joindetail",
      component: () => import("@/views/supplier/detail/index"),
      name: "supplier_joindetail",
      hidden: true,
      meta: {
        title: "供应商详情",
        noCache: false,
        navigation: "/supplier/join",
        icon: "menu_big_data"
      }
    },
  ]
};

export default supplierRouter;